@charset "utf-8";
/* CSS Document */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本字体和背景 */
body {
    font: 12px/1.5 微软雅黑, 黑体, Arial, Helvetica, sans-serif;
    background-color: #f2f4f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

/* 注册容器 */
.register-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 64%;
    max-width: 90%;
    margin: auto;
    min-height: 75vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #181E33;
    font-size: 24px;
    font-weight: 500;
    font-family: '微软雅黑';
}

/* 注册内容 */
.register-content {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* 注册表单部分 */
.register-form-section {
    width: 60%;
    max-width: 500px;
    padding: 20px;
}

/* 输入组 */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    width: 100%;
    margin-bottom: 8px;
    padding-left: 0;
    text-align: left;
    color: #646873;
    font-size: 16px;
    margin-top: 10px;
}

.input-group input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    font-size: 16px;
    color: #181E33;
    background-color: #FFFFFF;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    display: block;
    box-sizing: border-box;
}

.input-group input::placeholder {
    font-weight: 300;
    font-style: normal;
    color: #A8A8B3;
}

.input-group input:focus {
    border: 1px solid #3A8BFF;
    box-shadow: 0 0 4px 0 #75BAFF;
    outline: none;
}

/* 注册按钮 */
#btn-register {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 18px;
    margin: 20px 0;
    display: block;
    transition: background 0.3s ease;
}

#btn-register:hover {
    background: linear-gradient(135deg, #4b934e, #38923e);
}

/* 选项链接 */
.options {
    text-align: center;
    margin-top: 15px;
}

.options span {
    color: #646873;
    font-size: 14px;
}

.options a {
    color: #3A8BFF;
    text-decoration: none;
    margin: 0 5px;
    font-size: 14px;
}

.options a:hover {
    text-decoration: underline;
    color: #646873;
}

/* 底部信息栏样式 */
.footer {
    border-top: 1px solid #E1E1E5;
    color: #A8A8B3;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    margin-top: auto;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-container {
        width: 90%;
        padding: 20px;
    }

    .register-form-section {
        width: 100%;
        padding: 10px;
    }

    .input-group {
        width: 100%;
    }

    .input-group input,
    #btn-register {
        width: 100%;
    }
}

/* 错误提示样式 */
.error-message {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.input-group.error input {
    border-color: #ff4d4f;
}

.input-group.error .error-message {
    display: block;
}
